const serviceCommon = require('../util/serviceCommon');
const fileDao = require('../dao/fileDao');
const fs = require('fs');
const multer = require('koa-multer');

const service = {
    /**
     * @desc 查询图片列表
     * @author cbl
     * @date 2018/4/17
     */
    searchFileList: async (data) => {
        let result = await serviceCommon.getListMethod(fileDao, "searchFileList", data);
        return result;
    },
    handleUploadMain: async (data) => {
        let result = await serviceCommon.editDataMethod(fileDao, "handleUploadMain", data);
        return result;
    }


};
module.exports = service;